<%@ page language="java" import="java.util.*,com.king.cms.common.*" pageEncoding="utf-8"%>
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ttt.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
   <script ;anguage="javaScript">
    function selectRoom(){
      if(form1.placeselect.value=='bigroom')
          opwnwindow();
      if(form1.placeselect.value=='hotelroom')
            form1.roomStr.value="----";
       if(form1.placeselect.value=='fivearea')
             opwnwindow();
    }
     
 
/*取得字符串的字节长度*/
function strlen(str)
{ var i;
  var len;
 len=0;
for(i=0;i<str.length;i++)
{
if(str.charCodeAt(i)>255)
  len+=2;
  else
  len++;
}
return len;
}
 function docheck(obj){
  var length = strlen(obj.value);
  if(length > 50)
     alert("只能输入25个汉字");

} 
   </script>
  </head>
  
  <body>
  <form name="form1" method="post" >
  <input type="text" name="roomStr" size=100 class="area100" onBlur="docheck(this)" value="">
  <input type="text" name="content value="">
    <select name="placeselect" onchange="selectRoom()">
    <option value="bigroom">
    大堂
    </option>
     <option value="hotelroom">
    tv频道
    </option>
     <option value="fivearea">
    五区宴会
    </option>
    </select>
    </form>
  </body>
</html>
